package com.aqie.haikang.dorm.dao;

import com.aqie.haikang.dorm.dao.aqie.CronExpression;
import com.aqie.haikang.dorm.entity.Cron;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author aqie
 * @Date 2021/12/11 14:00
 * @desc
 */
public interface CronRepository extends JpaRepository<Cron, Integer> {
    CronExpression getByName(String name);

    List<Cron> findAllByStatus(Integer status);
}
